<%@page import="workboard.Workboard"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>

#success_join{
	width: 350px;
	height: 100px;
	text-align: center;
	font-size: 15px;
	font-family: 'Nanum Gothic', sans-serif;
}

#workin_re_btn{
	width: 50px;
	height: 40px;
	border:0.5px solid white;
	border-radius: 10px;
	background-image: url('../images/searid_home.png');
	background-size:100% 100%;
}
</style>

</head>
<body>
	<jsp:useBean id="workboard" class='workboard.WorkboardVo'></jsp:useBean>
	<jsp:setProperty property="*" name="workboard"/>
	
		<div id='success_join'>
		<%
		workboard.setRequest(request);	
		Workboard work = new Workboard();
		work.setVo(workboard);
		
			if (work.insert()) { %>
				<script>
				alert("정상적으로 입력되었습니다.");
				location.href="Main.jsp?inc_content=../work/Worksview.jsp&part=<%=work.getVo().getPart()%>&nowPage=1";
				</script>
		<% 	} else {%>
				<script>
				alert("오류발생가 발생했습니다. 다시 시도해 주세요.");
				history.back();
				</script>
		<%	}
		%>
		<p/>
	</div>
</body>
</html>